/**
 * The MIT License (MIT)
 * 
 * Copyright (c) 2016 mo_yq5 (mo_yq5@163.com)
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 */
package com.vulgarsdk.captcha;

/**
 * 验证码使用的会话session。通过实现此接口可以根据自己的应用框架类型自定义session对象，如shiro session、servlet session。
 * @author mo_yq5
 * @since 2016年1月10日
 */
public interface CaptchaSession {
	
	/**
	 * 获取session值
	 * @param key session属性名
	 * @return
	 */
	public Object get(String key);
	
	/**
	 * 添加session值
	 * @param key session属性名
	 * @param value session属性要设置的值
	 */
    public void set(String key, Object value);
    
    /**
     * 删除session值
     * @param key session属性名
     */
    public void remove(String key);

}
